<template>
  <div id="root">
    <van-tabs class="van-tabs">
  <van-tab v-for="index in main" :title="index" :key="index">
  </van-tab>
</van-tabs>
  </div>
</template>

<script>
export default {
    data(){
        return{
          main:["推荐","购机优惠","亲选好券","生活权益","品质家居","智能科技","限量精品"]  
        }
    }
}
</script>

<style scoped>
  .van-tabs{
    background-color:#f3f3f3 ;
    position: fixed;
    top: 0;
    z-index: 1;
  } 
</style>